﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UsersManagement.aspx.cs" Inherits="MS.InformationManagement.WP.Layouts.MS.InformationManagement.WP.UsersManagement" DynamicMasterPageFile="~masterurl/default.master" %>
<%@ Register src="/_controltemplates/InformationManagerControls/TaxonomySingleValue.ascx" tagname="TaxonomySingle" tagprefix="Value" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">

<style type="text/css"> 
.user-row{  margin-bottom:20px; margin-left:20px }
.user-row span{ width: 210px; float:left; }
</style>
</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <link rel="stylesheet" type="text/css" href="/_layouts/INC/MS.InformationManagement/css/layoutInterna.css" />

    <div class="Radicado-Interno-Container form-container">
    <h2>Gesti&oacute;n de usuarios</h2>
        <div class="Radicado-Interno-Row form-row">
            <asp:Label ID="lblUsuario" runat="server" Text="Usuario" CssClass="label"></asp:Label>
            <SharePoint:PeopleEditor  ID="PeopleEditorDestinatario" runat="server" width="355px" ValidatorEnabled="true" 
                AllowEmpty="false"     
                MultiSelect="false" 
                SelectionSet="User" />
        </div>        
        <div class="Radicado-Interno-Row form-row">
            <asp:Label ID="lblDepartamento" runat="server" Text="Departamento" CssClass="label" ></asp:Label>
            <Value:TaxonomySingle id="ddlDeptos" runat="server" TermSet="Departamentos" InitialElement="-- Seleccione departamento --" TermGroup="Documents Metadata" /> 
        </div>
        <div class="Radicado-Interno-Row form-row">
            <asp:Button ID="btnAgregar" runat="server" Text="Agregar usuario" OnClick="CreateUsers" CssClass="button" />
        </div>
        <div class="Radicado-Interno-Row form-row">
        <h2>Usuarios del sistema</h2>
            <asp:Repeater ID="rptExistingUsers" runat="server">
                <ItemTemplate>
                    <div class="user-row">
                        <asp:Image ID="imgUser" runat="server" ImageUrl="/_layouts/Images/MS.InformationManagement.WP/user.jpeg" />
                        <asp:Label ID="lblUserName" runat="server" Text='<%# Eval("Title") %>' CssClass="label"></asp:Label>
                        <asp:ImageButton ID="imgRemove" runat="server" ToolTip="Eliminar Usuario" ImageUrl="/_layouts/Images/MS.InformationManagement.WP/Eliminar.jpeg" />
                    </div>
                </ItemTemplate>
            </asp:Repeater>
        </div>
    </div>
</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
Sistema de gesti&oacute;n documental
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
Sistema de gesti&oacute;n documental
</asp:Content>
